package com.huangyong.entity;

import java.sql.Timestamp;

public class Article {
	
	private int aid;
	private User user;
	private String title;
	private String content;
	private Timestamp createtime;
	private Timestamp updatetime;
	private int readcount;

    public Article() {
		super();
	}

	public Article(int aid, User user, String title, String content, Timestamp createtime, Timestamp updatetime,
			int readcount) {
		super();
		this.aid = aid;
		this.user = user;
		this.title = title;
		this.content = content;
		this.createtime = createtime;
		this.updatetime = updatetime;
		this.readcount = readcount;
	}

	public Article(String title, User user, String content, int readcount) {
		super();
		this.title = title;
		this.user = user;
		this.content = content;
		this.readcount = readcount;
	}

	public Timestamp getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	public Timestamp getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Timestamp updatetime) {
		this.updatetime = updatetime;
	}

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }


    public Integer getReadcount() {
        return readcount;
    }

    public void setReadcount(Integer readcount) {
        this.readcount = readcount;
    }

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
}